﻿namespace VisionCloud.Domain.DtoModel.Applet.ResponseDto
{
    public class TextValue
    {
        /// <summary>
        /// 显示值
        /// </summary>
        public string Text { get; set; }

        /// <summary>
        /// 索引，用于传参
        /// </summary>
        public object Value { get; set; }

        public TextValue(object value, string text)
        {
            Text = text;
            Value = value;
        }

        public TextValue(string text)
        {
            Text = text;
            Value = text;
        }

        public TextValue()
        {
            Value = null;
            Text = "不限";
        }
    }
}